{% extends "../topic/inc/topic_base.html" %}
{% block head %}
    <title>{{title}}-{{_web.sitename}}</title>
    <meta name="keywords" content="{{_web.keywords}}">
    <meta name="description" content="{{_web.description}}">
    {{ super() }}
    <link rel="stylesheet" type="text/css" href="{{_web.url}}{{theme_url}}/vendors/wangeditor/css/wangEditor.min.css">
{% endblock %}

{% block content %}
    <div class="topnews" id="createtop">
          <div class="header">
               <ol class="breadcrumb">
                 <li><a href="/">主页</a><span class="divider"></span></li>
                 <li class="active">发布话题</li>
               </ol>
          </div>
          <div class="createbody">
          <div class="row-item">
            <span>选择板块：</span>
            <select name="tab" class="select form-control" id="tab-value">
                 <option value="">请选择</option>
                 {% for item in itemList %}
                    <option value="{{item.name}}"
                    {%if topicInfo.item==item.name %}selected{%endif%}
                    {% if topicInfo.item==item.name %}selected{%endif%}>{{item.comment}}</option>
                 {%endfor%}
             </select>
           </div>
           <input type="hidden" id="uname" value="{{topicInfo.author}}">
           <input type="hidden" id="upic" value="{{upic}}">
           <input type="hidden" id="tid" value="{{topicInfo.id}}">
          <div class="row-item"><input type="text"  class="form-control" placeholder="标题字数10字以上" id="topicTitle" value="{{topicInfo.title|safe}}"></div>
          <div id="editor" style="height:400px;max-height:500px;margin:15px 0;">{{topicInfo.content|safe}}</div>

        </div>
        <span class="span-success" id="updatetopic">提交</span>
    </div>
{% endblock %}
{% block footer_other %}
    <script type="text/javascript" src="{{_web.url}}{{theme_url}}/vendors/wangeditor/js/wangEditor.min.js"></script>
    <script type="text/javascript" src="{{_web.url}}{{theme_url}}/{{think.Dev_Src}}js/business/topic/create.js"></script>
{% endblock %}
